import request from '@/utils/request'
import type { PageParam, ResponseData } from '../commonType'

enum API {
  GETINFO_URL = '/sys/setting/getInfo',
  UPDATE_URL = '/sys/setting/update',
}

export function settingGetInfo() {
  return request.get<any, ResponseData>(API.GETINFO_URL)
}

export function settingUpdate(data: any) {
  return request.put<any, ResponseData>(API.UPDATE_URL, data)
}
